package titt.service.content;

import titt.head.response.ResponseHead;
import titt.io.socket.TITTSocket;
import titt.io.socket.in.TITTInputStream;

public class InternalNuderResponse {

	private final NuderResponse resp;
	
	public InternalNuderResponse(ResponseHead resp, TITTInputStream in) {
		this.resp = new NuderResponse(resp, in);
	}
	
	public InternalNuderResponse(NuderResponse resp) {
		this.resp = resp;
	}
	
	public void encodeAndWriteToSocket(TITTSocket s) throws Exception {
		resp.encodeAndWriteToSocket(s);
	}
	
	public NuderResponse getNuderResponse() {
		return resp;
	}
	
}
